<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<StatusBar name="TextStatusBar" virtual="true">
		<Scripts>
			<OnLoad>
				TextStatusBar_Initialize();
			</OnLoad>
			<OnEvent>
				TextStatusBar_OnEvent(arg1, arg2);
			</OnEvent>
			<OnEnter>
				TextStatusBar_UpdateTextString();
				ShowTextStatusBarText(this);
				if ( this.tooltipTitle ) then
					GameTooltip_AddNewbieTip(this.tooltipTitle, 1.0, 1.0, 1.0, this.tooltipText, 1);
				elseif ( this:GetParent() == TargetFrame ) then
					GameTooltip_SetDefaultAnchor(GameTooltip, this);
					if ( GameTooltip:SetUnit(TargetFrame.unit) ) then
						TargetFrame.updateTooltip = TOOLTIP_UPDATE_TIME;
					else
						TargetFrame.updateTooltip = nil;
					end

					TargetFrame.r, TargetFrame.g, TargetFrame.b = GameTooltip_UnitColor(TargetFrame.unit);
					GameTooltipTextLeft1:SetTextColor(TargetFrame.r, TargetFrame.g, TargetFrame.b);
				end
			</OnEnter>
			<OnLeave>
				HideTextStatusBarText(this);
				GameTooltip:Hide();
			</OnLeave>
			<OnValueChanged>
				TextStatusBar_OnValueChanged();
			</OnValueChanged>
		</Scripts>
	</StatusBar>
</Ui>
